package god;

public class J15Extends {

}

class J15SungJukV1 {
	private String namd;
	private int kor;
	private int eng;
	private int mat;
	
	public String getNamd() { return namd; }
	public void setNamd(String namd) { this.namd = namd; }
	public int getKor() { return kor; }
	public void setKor(int kor) { this.kor = kor; }
	public int getEng() { return eng; }
	public void setEng(int eng) { this.eng = eng; }
	public int getMat() { return mat; }
	public void setMat(int mat) { this.mat = mat; }
	
	public int getTot( int kor, int eng, int mat ) {
		return kor + eng + mat;
	}
}

class J15SungJukV1b {
	// 복사 붙여넣기 후 새로 넣기 ( 상속 X )
	private String namd;
	private int kor;
	private int eng;
	private int mat;
	private int sci;
	private int art;
}

class J15SungJukV2 extends J15SungJukV1 {
	// 상속 받기
	private int sci;
	private int art;
	
	@Override
	public int getTot(int kor, int eng, int mat) {
		return super.getTot(kor, eng, mat) + sci + art;
	}
	
class Search4Superp extends Object {
	
}

}